  Files
:     (  slaed 3.0),     .

: Route
e-mail: Serzh_cuba@mail.ru

  slaed 2.0 Pro.

:

0.  images      !!!

1. modules\Files\index.php

 

			echo "<table border=\"0\" width=\"100%\" cellpadding=\"3\" cellspacing=\"1\" class=\"bgcolor4\"><tr>\n"
			."<td class=\"bgcolor1\" colspan=\"2\"><b><a href=index.php?name=$module_name&op=view_file&lid=$lid title=\"$f_title\">$f_title</a></b> ".new_graphic($formatted).""
			."</td><td class=\"bgcolor1\">"._ADDDATE.": $fp_data</td></tr>\n"
			."<tr><td class=\"bgcolor1\" colspan=\"3\">".cutstr($description, 250)."</td></tr><tr>\n"
			."<td class=\"bgcolor1\" width=\"33%\">"._FILEHITS.": $hits</td>\n"
			."<td class=\"bgcolor1\" width=\"33%\"><a href=index.php?name=$module_name&op=view_file&lid=$lid#$lid title=\"$f_title\">"._FILECOMMENTS.": $comment</a></td><td class=\"bgcolor1\" width=\"34%\">"._FILEREITING." ".vote_graphic($votes, $totalvotes)."</td></tr>";
			if (is_admin($admin)) {
				echo "<tr><td class=\"bgcolor1\" colspan=\"3\" align=\"center\">[ <a href=".$admin_file.".php?op=delit_file&lid=$lid>"._DELETE."</a> | <a href=".$admin_file.".php?op=edit_files&lid=$lid>"._EDIT."</a> ]</td></tr>";
			}
			echo "</table><br><br>";
			
 

			/*------------>start m@rt code<-------------*/
			if ($f_img) {
			$zimg = "<img src=\"images/blocks/Album.gif\" >";
			} else {
			$zimg = "<img src=\"images/blocks/Files.gif\" >";
			}		
			echo "<table border=\"0\" width=\"100%\" cellpadding=\"3\" cellspacing=\"1\" class=\"bgcolor4\"><tr>\n"
			."<td class=\"bgcolor1\" colspan=\"2\">
			<table border=\"0\" width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" align=\"left\" class=\"bgcolor1\" colspan=\"2\"><tr><td width=\"16\">
			$zimg</td><td nowrap><b><a href=index.php?name=$module_name&op=view_file&lid=$lid title=\"$f_title\">&nbsp;$f_title</a></b></td><td width=\"100%\">&nbsp;".new_graphic($formatted)."</td></tr></table></td></tr>\n"
			."<tr><td class=\"bgcolor1\" colspan=\"3\">".cutstr($description, 250)."</td></tr>\n"			
			."<tr><td class=\"bgcolor1\" colspan=\"3\"><table border=\"0\" width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" align=\"left\" class=\"bgcolor1\" colspan=\"2\"><tr><td class=\"bgcolor1\" width=\"100%\"><b><a href=index.php?name=$module_name&op=view_file&lid=$lid title=\"$f_title\"></a></b> | "._FILEHITS.": $hits | "._ADDDATE.": $fp_data | <a href=index.php?name=$module_name&op=view_file&lid=$lid#$lid title=\"$f_title\">"._FILECOMMENTS.": $comment</a></td><td class=\"bgcolor1\">".vote_graphic($votes, $totalvotes)."</td>\n";			
			if (is_admin($admin)) {			
			echo "<td>&nbsp;</td><td><a href=".$admin_file.".php?op=edit_files&lid=$lid title=\""._EDIT."\"><img src=\"images/edit.gif\" border=\"0\"></a></td><td><a href=".$admin_file.".php?op=delit_file&lid=$lid title=\""._DELETE."\"><img src=\"images/delete.gif\" border=\"0\"></a></td></tr>\n";			
			}			
			echo "</table></td></tr></table><br><br>";
			/*------------>stop m@rt code<-------------*/
			
 

    OpenTable();
    echo "<center><font class=\"option\">$title</font></center><hr>"
	."<table border=\"0\" width=\"100%\" cellpadding=\"3\" cellspacing=\"0\"><tr><td>"._FILEAUTOR.": $a_name <a href=\"mailto:$a_email\"><img border=\"0\" src=\"images/blocks/Contact.gif\" alt=\""._FAUEMAIL."\"></a>&nbsp;<a href=\"$a_homepage\" target=\"_blank\"><img border=\"0\" src=\"images/blocks/Home.gif\" alt=\""._FAUURL."\"></a></td><td>"._FILEREITING." ".vote_graphic($votes, $totalvotes)."</td></tr>"
	."<tr><td>"._FILESIZE.": ".files_size($f_size)."</td><td>"._ADDDATE.": $datetime</td></tr>"
	."<tr><td>"._FILEVERS." $f_version</td><td>"._FILEHITS.": $hits</td></tr></table><hr>"
	."<table border=\"0\" width=\"100%\" cellpadding=\"3\" cellspacing=\"0\"><tr><td>";
	if ($f_img != "") {
		echo "<script language=\"JavaScript\" type=\"text/javascript\" src=\"javascripts/CaricaFoto.js\"></script>"
		."<a href=\"javascript:CaricaFoto('$f_img')\" border=\"0\" title=\"".$title."\"><img height=\"100\" width=\"150\" border=\"0\" align=\"left\" src=\"$f_img\" alt=\"".$title."\"></a>";
	}
	echo "$description</td></tr>";
	if ($broclink == 1) echo "<tr><td colspan=\"2\"><a href=\"index.php?name=$module_name&op=broken&lid=$lid\"><img border=\"0\" src=\"images/red_dot.gif\" alt=\""._BROCFILE."\"> "._BROCFILE."</a></td></tr>";
	echo "</table><hr><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\"><tr>";
    if (is_user($user) OR $downfiles == "1") {
		echo "<td><form method=\"POST\" action=\"index.php?name=$module_name\" style=\"display: inline\">"
		."<input type=\"hidden\" name=\"lid\" value=\"$lid\">"
		."<input type=\"hidden\" name=\"op\" value=\"getit\">"
		."<input type=\"submit\" onClick=\"window.open('$url')\" value=\""._DOWNLFILE."\">&nbsp;</form></td>";
	}
    if ($poolfiles == 1) {
		echo "<td><form method=\"POST\" action=\"index.php?name=$module_name\" style=\"display: inline\">"
        ."<input type=\"hidden\" name=\"op\" value=\"pool\">"
        ."<input type=\"hidden\" name=\"lid\" value=\"$lid\">"
        ."<select name=\"send_reiting\">"
        ."<option selected value=\"5\">"._RATE5."</option>"
        ."<option value=\"4\">"._RATE4."</option>"
        ."<option value=\"3\">"._RATE3."</option>"
        ."<option value=\"2\">"._RATE2."</option>"
        ."<option value=\"1\">"._RATE1."</option></select>&nbsp;"
        ."<input type=\"submit\" value=\""._RATEFILE."\"></form></td>";
    }
	echo "</tr></table>";
	if (is_admin($admin)) echo "<hr><center>[ <a href=".$admin_file.".php?op=delit_file&lid=$lid>"._DELETE."</a> | <a href=".$admin_file.".php?op=edit_files&lid=$lid>"._EDIT."</a> ]</center>";
	CloseTable();
	
  
	
	    OpenTable();    
			/*------------>start m@rt code<-------------*/    
    echo "<center><font class=\"option\">$title</font></center><hr>"
	."<table border=\"0\" width=\"100%\" cellpadding=\"3\" cellspacing=\"0\"><tr><td>"._FILEAUTOR.": <a href=\"index.php?name=Account&op=userinfo&user_name=$a_name\">$a_name</a></td><td> ".vote_graphic($votes, $totalvotes)."</td></tr>"
	."<tr><td>"._FILESIZE.": ".files_size($f_size)."</td><td>"._ADDDATE.": $datetime</td></tr><tr>";	
	if ($f_version != "") { 
	echo "<td>"._FILEVERS." $f_version</td>"; 
	} else {
	echo "<td>"._FILEVERS."  </td>";
	}	
	echo "<td>"._FILEHITS.": $hits</td></tr></table><hr>"	
	."<table border=\"0\" width=\"100%\" cellpadding=\"3\" cellspacing=\"0\"><tr><td>";
	if ($f_img != "") {
		echo "<script language=\"JavaScript\" type=\"text/javascript\" src=\"javascripts/CaricaFoto.js\"></script>"
		."<a href=\"javascript:CaricaFoto('$f_img')\" border=\"0\" title=\"".$title."\"><img width=\"150\" border=\"0\" align=\"left\" src=\"$f_img\" alt=\"".$title."\"></a>";
	}
	echo "$description</td></tr>";	
	echo "</table><hr><table border=\"0\"  align=\"center\" cellpadding=\"0\" cellspacing=\"0\"><tr>";
    if (is_user($user) OR $downfiles == "1") {	
		if ($broclink == 1) echo "<td><a href=\"index.php?name=$module_name&op=broken&lid=$lid\"><img border=\"0\" src=\"images/warning.gif\" title=\""._BROCFILE."\"></a></td><td>&nbsp;</td>"		
		."<td><form method=\"POST\" action=\"index.php?name=$module_name\" style=\"display: inline\">"
		."<input type=\"hidden\" name=\"lid\" value=\"$lid\">"
		."<input type=\"hidden\" name=\"op\" value=\"getit\">"
		."<input type=\"submit\" onClick=\"window.open('$url')\" value=\""._DOWNLFILE."\">&nbsp;</form>";
	}
    if ($poolfiles == 1) {
		echo "<form method=\"POST\" action=\"index.php?name=$module_name\" style=\"display: inline\">"
        ."<input type=\"hidden\" name=\"op\" value=\"pool\">"
        ."<input type=\"hidden\" name=\"lid\" value=\"$lid\">"
        ."<select name=\"send_reiting\">"
        ."<option selected value=\"5\">"._RATE5."</option>"
        ."<option value=\"4\">"._RATE4."</option>"
        ."<option value=\"3\">"._RATE3."</option>"
        ."<option value=\"2\">"._RATE2."</option>"
        ."<option value=\"1\">"._RATE1."</option></select>&nbsp;"
        ."<input type=\"submit\" value=\""._RATEFILE."\"></form></td>";
    }
    if (is_admin($admin)) {			
		echo "<td>&nbsp;</td><td><a href=".$admin_file.".php?op=edit_files&lid=$lid title=\""._EDIT."\"><img src=\"images/edit.gif\" border=\"0\"></a></td><td><a href=".$admin_file.".php?op=delit_file&lid=$lid title=\""._DELETE."\"><img src=\"images/delete.gif\" border=\"0\"></a></td>\n";			
			}
	echo "</tr></table>";
			/*------------>stop m@rt code<-------------*/	
	CloseTable();
	
 

		$order = "cid = '0' AND status !='0' ORDER BY lid DESC";
		
 

			/*------------>start m@rt code<-------------*/
		$order = "date AND status !='0' ORDER BY date DESC";
			/*------------>stop m@rt code<-------------*/
			


		$result2 = $db->sql_query("SELECT lid, title, description, UNIX_TIMESTAMP(date) as formatted, votes, totalvotes, totalcomments, hits  FROM ".$prefix."_files WHERE cid = '$cid' AND status !='0' ORDER BY lid DESC LIMIT $offset, $filenum");
	
 

			/*------------>start m@rt code<-------------*/
    $result2 = $db->sql_query("SELECT lid, title, description, UNIX_TIMESTAMP(date) as formatted, votes, totalvotes, totalcomments, hits  FROM ".$prefix."_files WHERE cid = '$cid' AND status !='0' ORDER BY date DESC LIMIT $offset, $filenum");
 			/*------------>stop m@rt code<-------------*/
 			
 2.	function\comments.php
	
 
	
	OpenTable();
	echo "<center><font class=\"option\">"._NOCOMMENTS."</font></center>";
	CloseTable();
	
 
	
		OpenTable();
			/*------------>start m@rt code<-------------*/
	echo "<table border=\"0\" width=\"100%\" cellpadding=\"0\" cellspacing=\"0\"><tr><td><img src=\"images/admin/info.gif\"></td><td class=\"option\" align=\"center\" width=\"100%\">"._NOCOMMENTS."</td><td><img src=\"images/admin/info.gif\"></td></tr></table>";
			/*------------>stop m@rt code<-------------*/
		CloseTable();	
		
3. modules\Files\language\lang-russian.php	

define("_ADDDATE"," ");  
define("_ADDDATE","");

define("_FILEAUTOR"," ");   
define("_FILEAUTOR","");
		